nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
friendz: rename `par` as `gold` as is it more clear that it higer is better
[nit.git]
/
tests
/
base_class_name.nit
diff --git
a/tests/base_class_name.nit
b/tests/base_class_name.nit
index
6866ca0
..
ad904cf
100644
(file)
--- a/
tests/base_class_name.nit
+++ b/
tests/base_class_name.nit
@@
-14,6
+14,8
@@
# 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.
+import text
+
class Test end
class MyArray[E] end
class Test end
class MyArray[E] end
@@
-26,10
+28,16
@@
var test2: Object = new Test
var test3 = new MyArray[Int]
var test4 = new Toto
var test3 = new MyArray[Int]
var test4 = new Toto
-print "".class_name
-print 1.class_name
+"".class_name.output
+'\n'.output
+1.class_name.output
+'\n'.output
-print test1.class_name
-print test2.class_name
-print test3.class_name
-print test4.class_name
+test1.class_name.output
+'\n'.output
+test2.class_name.output
+'\n'.output
+test3.class_name.output
+'\n'.output
+test4.class_name.output
+'\n'.output