Merge remote-tracking branch 'upstream/master' into init_auto
[nit.git] / tests / test_memset.nit
diff --git a/tests/test_memset.nit b/tests/test_memset.nit
new file mode 100644 (file)
index 0000000..240a83c
--- /dev/null
@@ -0,0 +1,15 @@
+# This file is part of NIT ( http://www.nitlanguage.org ).
+#
+# This file is free software, which comes along with NIT.  This software is
+# distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
+# without  even  the implied warranty of  MERCHANTABILITY or  FITNESS FOR A
+# PARTICULAR PURPOSE.  You can modify it is you want,  provided this header
+# is kept unaltered, and a notification of the changes is added.
+# You  are  allowed  to  redistribute it and sell it, alone or is a part of
+# another product.
+
+var in_value = b"BBBBBBB"
+
+in_value.items.memset(0x41, in_value.length)
+
+print in_value