diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-01-28 22:05:06 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-01-28 22:05:06 +0100 |
| commit | 3a987d3dfe0014bed43151874882c5b4f20eb7af (patch) | |
| tree | eeb7d89a8a8dc5a09acb218b0b0d3528d422da56 | |
| parent | 904fd111bcd539190cf6bcf10f60c29813c7012b (diff) | |
| download | sylt-3a987d3dfe0014bed43151874882c5b4f20eb7af.tar.gz | |
blob tests
| -rw-r--r-- | src/lib.rs | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -272,6 +272,31 @@ a() <=> 4 */ ); + test_multiple!( + blob, + simple: "blob A {}", + instantiate: "blob A {} + a := A()", + field: "blob A { a: int }", + field_assign: "blob A { a: int } + a := A() + a.a = 2", + field_get: "blob A { a: int } + a := A() + a.a = 2 + //TODO a.a <=> 2 + 2 <=> a.a", + multiple_fields: "blob A { + a: int + b: int + } + a := A() + a.a = 2 + a.b = 3 + //TODO a.a + a.b <=> 5 + 5 <=> a.a + a.b" + ); + test_file!(scoping, "tests/scoping.tdy"); test_file!(for_, "tests/for.tdy"); } |
