mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-20 17:08:00 +02:00
Initial checkin
This commit is contained in:
parent
c74712dad9
commit
078564ac9e
3242 changed files with 1616395 additions and 0 deletions
25
IDEHelper/Tests/src/Ints.bf
Normal file
25
IDEHelper/Tests/src/Ints.bf
Normal file
|
@ -0,0 +1,25 @@
|
|||
using System;
|
||||
|
||||
namespace Tests
|
||||
{
|
||||
class Ints
|
||||
{
|
||||
[Test]
|
||||
public static void TestUInt64()
|
||||
{
|
||||
var str = scope String();
|
||||
|
||||
uint64 val = 0x11223344'55667788;
|
||||
|
||||
str.AppendF("{0:X}", val);
|
||||
//Test.Assert(str == "1122334455667788");
|
||||
}
|
||||
|
||||
[Test]
|
||||
public static void TestInt64()
|
||||
{
|
||||
Test.Assert(Math.Min((int64)-1, (int64)0) == -1);
|
||||
Test.Assert(Math.Max((int64)-1, (int64)0) == 0);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue