diff options
author | Andreas Rumpf <andreas@andi> | 2008-06-22 16:14:11 +0200 |
---|---|---|
committer | Andreas Rumpf <andreas@andi> | 2008-06-22 16:14:11 +0200 |
commit | 405b86068e6a3d39970b9129ceec0a9108464b28 (patch) | |
tree | c0449946f54baae6ea88baf453157ddd7faa8f86 /tests/tnewuns.nim | |
download | Nim-405b86068e6a3d39970b9129ceec0a9108464b28.tar.gz |
Initial import
Diffstat (limited to 'tests/tnewuns.nim')
-rwxr-xr-x | tests/tnewuns.nim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/tnewuns.nim b/tests/tnewuns.nim new file mode 100755 index 000000000..5181e467c --- /dev/null +++ b/tests/tnewuns.nim @@ -0,0 +1,12 @@ +# test the new unsigned operations: + +import + strutils + +var + x, y: int + +x = 1 +y = high(int) + +writeln(stdout, $ ( x +% y ) ) |