nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib/core: Renamed `Text::bytelen` to `Text::byte_length`
[nit.git]
/
tests
/
test_copy_to_native.nit
diff --git
a/tests/test_copy_to_native.nit
b/tests/test_copy_to_native.nit
index
380c02a
..
0018f1d
100644
(file)
--- a/
tests/test_copy_to_native.nit
+++ b/
tests/test_copy_to_native.nit
@@
-23,6
+23,6
@@
var str: String = base_str
#alt1 str = new Concat(base_str, base_str)
#alt2 str = new Concat(base_str, base_str.substring_from(2))
#alt1 str = new Concat(base_str, base_str)
#alt2 str = new Concat(base_str, base_str.substring_from(2))
-var copy_len = (str.bytelen - 4).min(9)
+var copy_len = (str.byte_length - 4).min(9)
str.copy_to_native(ons, copy_len, 4, 0)
print ons.to_s_with_length(copy_len)
str.copy_to_native(ons, copy_len, 4, 0)
print ons.to_s_with_length(copy_len)