Skip to content

Commit ae21dc4

Browse files
committed
Stop converting a '6 cute' to string
Such conversions shouldn't allowed.
1 parent d8e1773 commit ae21dc4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/moar/02-qast-references.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ test_qast_result(
425425
QAST::Op.new(
426426
:op<bind>,
427427
QAST::Var.new( :name<strloc>, :scope<lexical> ),
428-
QAST::SVal.new( :value('6 cute') )
428+
QAST::SVal.new( :value(' 6 ') )
429429
),
430430
QAST::Op.new( :op<bind>,
431431
QAST::Var.new( :name<numref>, :scope<lexicalref> ),
@@ -473,7 +473,7 @@ test_qast_result(
473473

474474
ok(nqp::atpos($r, 0) eq '7', 'can use int lexicalref as str');
475475
ok(nqp::atpos($r, 1) eq '3.14', 'can use num lexicalref as str');
476-
ok(nqp::atpos($r, 2) eq '6 cute', 'can use str lexicalref as str');
476+
ok(nqp::atpos($r, 2) eq ' 6 ', 'can use str lexicalref as str');
477477
}
478478
);
479479

0 commit comments

Comments
 (0)