summarylogtreecommitdiffstats
path: root/0001-hex.patch
blob: bc52ecd459b9e8c0bea1712b64fcfc4c22b13705 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- xasm.d.orig	2019-10-27 07:30:11.264959439 +0100
+++ xasm.d	2019-10-27 07:30:22.445169977 +0100
@@ -2636,12 +2636,12 @@
 }
 
 unittest {
-	assert(testInstruction("nop") == cast(ubyte[]) x"ea");
-	assert(testInstruction("add (5,0)") == cast(ubyte[]) x"18a2006105");
-	assert(testInstruction("mwa #$abcd $1234") == cast(ubyte[]) x"a9cd8d3412a9ab8d3512");
-	assert(testInstruction("dta 5,d'Foo'*,a($4589)") == cast(ubyte[]) x"05a6efef8945");
+	assert(testInstruction("nop") == cast(ubyte[]) std.conv.hexString!"ea");
+	assert(testInstruction("add (5,0)") == cast(ubyte[]) std.conv.hexString!"18a2006105");
+	assert(testInstruction("mwa #$abcd $1234") == cast(ubyte[]) std.conv.hexString!"a9cd8d3412a9ab8d3512");
+	assert(testInstruction("dta 5,d'Foo'*,a($4589)") == cast(ubyte[]) std.conv.hexString!"05a6efef8945");
 	assert(testInstruction("dta r(1,12,123,1234567890,12345678900000,.5,.03,000.1664534589,1e97)")
-	 == cast(ubyte[]) x"400100000000 401200000000 410123000000 441234567890 461234567890 3f5000000000 3f0300000000 3f1664534589 701000000000");
+	 == cast(ubyte[]) std.conv.hexString!"400100000000 401200000000 410123000000 441234567890 461234567890 3f5000000000 3f0300000000 3f1664534589 701000000000");
 }
 
 void assemblyPair() {