nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib/core/stream: LineIterator use CachedIterator
[nit.git]
/
tests
/
test_new_native.nit
diff --git
a/tests/test_new_native.nit
b/tests/test_new_native.nit
index
c1ecc49
..
39400dc
100644
(file)
--- a/
tests/test_new_native.nit
+++ b/
tests/test_new_native.nit
@@
-12,11
+12,11
@@
# See the License for the specific language governing permissions and
# limitations under the License.
# See the License for the specific language governing permissions and
# limitations under the License.
-var s = new NativeString(4)
-s[0] = 'N'
-s[2] = 't'
-s[1] = 'i'
-s[3] = '\0'
+var s = new CString(4)
+s[0] = 0x4E
+s[2] = 0x74
+s[1] = 0x69
+s[3] = 0
print s.class_name
print s[0]
print s.to_s
print s.class_name
print s[0]
print s.to_s