nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
351d897
)
tests: extends test_new_native.nit with non C-int length
author
Jean Privat
<jean@pryen.org>
Thu, 21 May 2015 14:32:12 +0000
(10:32 -0400)
committer
Jean Privat
<jean@pryen.org>
Thu, 21 May 2015 14:32:12 +0000
(10:32 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>
tests/sav/nitg-e/test_new_native.res
patch
|
blob
|
history
tests/sav/nitg-e/test_new_native_alt1.res
patch
|
blob
|
history
tests/sav/test_new_native.res
patch
|
blob
|
history
tests/test_new_native.nit
patch
|
blob
|
history
diff --git
a/tests/sav/nitg-e/test_new_native.res
b/tests/sav/nitg-e/test_new_native.res
index
e69ef40
..
44b504c
100644
(file)
--- a/
tests/sav/nitg-e/test_new_native.res
+++ b/
tests/sav/nitg-e/test_new_native.res
@@
-5,3
+5,5
@@
NativeArray
3
1
1,10,100
+1
+1
diff --git
a/tests/sav/nitg-e/test_new_native_alt1.res
b/tests/sav/nitg-e/test_new_native_alt1.res
index
58f1483
..
cf6635c
100644
(file)
--- a/
tests/sav/nitg-e/test_new_native_alt1.res
+++ b/
tests/sav/nitg-e/test_new_native_alt1.res
@@
-5,3
+5,5
@@
NativeArray
3
1
1,true,100
+1
+1
diff --git
a/tests/sav/test_new_native.res
b/tests/sav/test_new_native.res
index
4fd1ad6
..
060a759
100644
(file)
--- a/
tests/sav/test_new_native.res
+++ b/
tests/sav/test_new_native.res
@@
-5,3
+5,5
@@
NativeArray[Int]
3
1
1,10,100
+1
+1
diff --git
a/tests/test_new_native.nit
b/tests/test_new_native.nit
index
49ab177
..
c1ecc49
100644
(file)
--- a/
tests/test_new_native.nit
+++ b/
tests/test_new_native.nit
@@
-31,3
+31,10
@@
print a.length
print a[0]
print a.to_a.join(",")
+var i
+i = 3
+a = new NativeArray[Int](i)
+i = 1
+a[i] = i
+print a[i]
+print a[1]