Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fc1943s committed Nov 30, 2023
1 parent f304319 commit 6cb54bf
Show file tree
Hide file tree
Showing 12 changed files with 122 additions and 128 deletions.
4 changes: 2 additions & 2 deletions apps/dice/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ if (!$fast) {
}

(Get-Content $targetDir/rs/dice.rs) `
-replace "../../../lib/fsharp", "../../lib/fsharp" `
-replace "../../../../lib/fsharp", "../../lib/fsharp" `
| Set-Content dice.rs
if (!$fast) {
Copy-Item -Force $targetDir/ts/dice.ts dice.ts
Expand All @@ -53,7 +53,7 @@ if (!$fast) {
Copy-Item -Force $targetDir/rs/lib/fsharp/Common.rs ../../lib/fsharp/CommonWasm.rs

(Get-Content $targetDir/rs/dice.rs) `
-replace "../../../lib/fsharp", "../../lib/fsharp" `
-replace "../../../../lib/fsharp", "../../lib/fsharp" `
-replace "/Common.rs", "/CommonWasm.rs" `
| Set-Content dice_wasm.rs

Expand Down
12 changes: 9 additions & 3 deletions apps/dice/dice.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ static function get_Item2_Type() {
(Unit,
DeclaredType
({ FullName = "Dice.UH0"
Path = SourcePath "C:/home/git/polyglot/apps/dice/target/dice.fs" }, []))\'';
Path =
SourcePath "C:/home/git/polyglot/target/polyglot/builder/dice/dice.fs" },
[]))\'';
}
function get_Tag() {
return 0;
Expand Down Expand Up @@ -234,7 +236,9 @@ static function get_f1_0_Type() {
(Unit,
DeclaredType
({ FullName = "Dice.UH0"
Path = SourcePath "C:/home/git/polyglot/apps/dice/target/dice.fs" }, []))\'';
Path =
SourcePath "C:/home/git/polyglot/target/polyglot/builder/dice/dice.fs" },
[]))\'';
}
function get_Tag() {
return 1;
Expand Down Expand Up @@ -443,7 +447,9 @@ static function get_Item2_Type() {
(Unit,
DeclaredType
({ FullName = "Dice.UH2"
Path = SourcePath "C:/home/git/polyglot/apps/dice/target/dice.fs" }, []))\'';
Path =
SourcePath "C:/home/git/polyglot/target/polyglot/builder/dice/dice.fs" },
[]))\'';
}
function get_Tag() {
return 0;
Expand Down
6 changes: 3 additions & 3 deletions apps/dice/dice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2806,10 +2806,10 @@ mod module_a51efde0 {
}
pub use module_a51efde0::*;
#[path = "../../lib/fsharp/Common.rs"]
mod module_ad43931;
pub use module_ad43931::*;
mod module_8cb3e09e;
pub use module_8cb3e09e::*;
pub mod Polyglot {
pub use crate::module_ad43931::Polyglot::*;
pub use crate::module_8cb3e09e::Polyglot::*;
}
pub fn main() {
let args = std::env::args().skip(1).map(fromString).collect();
Expand Down
6 changes: 3 additions & 3 deletions apps/dice/dice_wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2748,10 +2748,10 @@ mod module_a51efde0 {
}
pub use module_a51efde0::*;
#[path = "../../lib/fsharp/CommonWasm.rs"]
mod module_ad43931;
pub use module_ad43931::*;
mod module_8cb3e09e;
pub use module_8cb3e09e::*;
pub mod Polyglot {
pub use crate::module_ad43931::Polyglot::*;
pub use crate::module_8cb3e09e::Polyglot::*;
}
pub fn main() {
let args = std::env::args().skip(1).map(fromString).collect();
Expand Down
2 changes: 1 addition & 1 deletion apps/dice/ui/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ $targetDir = "../../../target/polyglot/builder/dice_ui"
Copy-Item $targetDir/rs/lib/fsharp/Common.rs ../../../lib/fsharp/CommonWasm.rs -Force

(Get-Content $targetDir/rs/dice_ui.rs) `
-replace "../../../lib/fsharp", "../../lib/fsharp" `
-replace "../../../../lib/fsharp", "../../../lib/fsharp" `
-replace "pub use crate::module_", "// pub use crate::module_" `
-replace "pub struct Heap0 {", "#[derive(serde::Serialize)] pub struct Heap0 {" `
-replace "pub struct Heap1 {", "#[derive(serde::Serialize)] pub struct Heap1 {" `
Expand Down
86 changes: 42 additions & 44 deletions apps/spiral/Tasks.dib.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6cb54bf

Please sign in to comment.