[DevState] testing with rply
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
use test1 from Tests;
|
||||
use test2 as test3 from Tests;
|
||||
|
||||
lib Main {
|
||||
class Program {
|
||||
func Main(args: list): void {
|
||||
var test_a: test1 = test1();
|
||||
test_a.dec_vars();
|
||||
test_a.is_error();
|
||||
if (!error) {
|
||||
var test_b: test3 = test3();
|
||||
test3.continue();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,35 +0,0 @@
|
||||
lib Tests
|
||||
{
|
||||
/*
|
||||
declaration of some tests
|
||||
*/
|
||||
public class test1
|
||||
{
|
||||
public var test_string: string = 'Hello';
|
||||
public var test_string_2: string = "Hello World";
|
||||
public var test_num: num = 1;
|
||||
public var test_num_2: num = 1.0;
|
||||
public var test_num_3: num = this.test_num + this.test_num_2;
|
||||
|
||||
public func dec_vars(): void
|
||||
{
|
||||
var test_bool: bool = true;
|
||||
var test_bool_2: bool = false;
|
||||
var test_bool_3: bool = test_bool != test_bool_2; # true
|
||||
}
|
||||
|
||||
public is_error(): bool
|
||||
{
|
||||
if (error != empty)
|
||||
{
|
||||
output(error.code + ' ' + error.message);
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
output('continue');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,12 +0,0 @@
|
||||
lib Tests {
|
||||
public class test2 {
|
||||
var string_a = strings();
|
||||
public func continue(): void {
|
||||
input(string_a.string1 + ': ');
|
||||
}
|
||||
}
|
||||
|
||||
class strings {
|
||||
public var string1 = "hello world";
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user