nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge: doc: fixed some typos and other misc. corrections
[nit.git]
/
tests
/
test_buffer_unicode.nit
diff --git
a/tests/test_buffer_unicode.nit
b/tests/test_buffer_unicode.nit
index
902993a
..
5ce1a1f
100644
(file)
--- a/
tests/test_buffer_unicode.nit
+++ b/
tests/test_buffer_unicode.nit
@@
-12,8
+12,7
@@
# 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 fb: Buffer = new RopeBuffer
-#alt1 fb = new FlatBuffer
+var fb = new FlatBuffer
for i in [0 .. 64[ do fb.add 'A'
for i in [0 .. 64[ do fb.add 'A'
@@
-35,7
+34,7
@@
end
l = 0
for i in fb.bytes do
l = 0
for i in fb.bytes do
- print "Byte {l} = {i}"
+ print "Byte {l} = 0x{i.to_hex}"
l += 1
end
l += 1
end
@@
-49,6
+48,6
@@
end
l = fb.byte_length - 1
for i in fb.bytes.reverse_iterator do
l = fb.byte_length - 1
for i in fb.bytes.reverse_iterator do
- print "Byte {l} = {i}"
+ print "Byte {l} = 0x{i.to_hex}"
l -= 1
end
l -= 1
end