mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-13 05:44:11 +02:00
28 lines
340 B
Beef
28 lines
340 B
Beef
#pragma warning disable 168
|
|
|
|
using System;
|
|
|
|
namespace Tests
|
|
{
|
|
class Expressions
|
|
{
|
|
[Test]
|
|
public static void TestBasics()
|
|
{
|
|
int num = -1;
|
|
if ( {
|
|
var obj = scope Object();
|
|
num > 999
|
|
})
|
|
{
|
|
Test.FatalError();
|
|
}
|
|
|
|
String inStr = "Abc";
|
|
bool b =
|
|
{
|
|
inStr.Length > 1 || 2 == 3
|
|
};
|
|
}
|
|
}
|
|
}
|