1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-02 22:36:00 +02:00

Const string alloc fixes, large string fixes, mem range check fix

This commit is contained in:
Brian Fiete 2021-12-20 15:07:38 -05:00
parent 649aabcaee
commit 2f72311f1f
4 changed files with 95 additions and 28 deletions

View file

@ -231,6 +231,7 @@ namespace Tests
}
const String cTest0 = Compiler.ReadText("Test0.txt");
const String cTest1 = new String('A', 12);
const uint8[?] cTest0Binary = Compiler.ReadBinary("Test0.txt");
[Test]
@ -275,6 +276,8 @@ namespace Tests
Test.Assert(serCtx.mStr == "x 10\ny 2\n");
Test.Assert(cTest0 == "Test\n0");
Test.Assert(cTest1 == "AAAAAAAAAAAA");
Test.Assert((Object)cTest1 == (Object)"AAAAAAAAAAAA");
Test.Assert((cTest0Binary[0] == (.)'T') && ((cTest0Binary.Count == 6) || (cTest0Binary.Count == 7)));
}
}