nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge: Contract refactoring
[nit.git]
/
tests
/
test_nativestring_fill_from.nit
diff --git
a/tests/test_nativestring_fill_from.nit
b/tests/test_nativestring_fill_from.nit
index
4a88e23
..
91aa315
100644
(file)
--- a/
tests/test_nativestring_fill_from.nit
+++ b/
tests/test_nativestring_fill_from.nit
@@
-21,7
+21,7
@@
var cpstr: Text = src_s
#alt2 cpstr = new FlatBuffer.from(src_s)
#alt3 cpstr = cpstr.substring(1, 5)
#alt2 cpstr = new FlatBuffer.from(src_s)
#alt3 cpstr = cpstr.substring(1, 5)
-var ns = new NativeString(cpstr.byte_length)
+var ns = new CString(cpstr.byte_length)
ns.fill_from(cpstr)
ns.fill_from(cpstr)
-print ns.to_s_with_length(cpstr.byte_length)
+print ns.to_s_unsafe(cpstr.byte_length, copy=false)