Explorar o código

Added byte string escape tests

nreed %!s(int64=4) %!d(string=hai) anos
pai
achega
af103dd2f6
Modificáronse 1 ficheiros con 13 adicións e 1 borrados
  1. 13 1
      src/rust/rust.test.ts

+ 13 - 1
src/rust/rust.test.ts

@@ -38,7 +38,19 @@ testTokenization('rust', [
 			]
 		}
 	],
-
+	[
+		{
+			line: "'\"'",
+			tokens: [{ startIndex: 0, type: 'string.byteliteral.rust' }]
+		}
+	],
+	[
+		{
+			line: "'\0'",
+			tokens: [{ startIndex: 0, type: 'string.byteliteral.rust' }]
+		}
+	],
+	
 	// Comment
 	[
 		{