Browse Source

cleaner test for #9336

Aleksandr Kuzmenko 5 years ago
parent
commit
624e01dc90

+ 2 - 2
tests/misc/projects/Issue9336/Main.hx

@@ -8,9 +8,9 @@ class Main {
 	#end
 	#end
 	static macro function test() {
 	static macro function test() {
 		var pos = Context.makePosition({min: 20, max: 23, file: 'my_template.mtt' });
 		var pos = Context.makePosition({min: 20, max: 23, file: 'my_template.mtt' });
-		Context.warning(Std.string(pos), pos);
+		Context.warning('check pos', pos);
 		Context.parse('foo', pos);
 		Context.parse('foo', pos);
-		Context.warning(Std.string(pos), pos);
+		Context.warning('check pos', pos);
 		return macro null;
 		return macro null;
 	}
 	}
 }
 }

+ 2 - 2
tests/misc/projects/Issue9336/compile.hxml.stderr

@@ -1,2 +1,2 @@
-my_template.mtt:2: characters 3-6 : Warning : #pos(my_template.mtt:2: characters 3-6)
-my_template.mtt:2: characters 3-6 : Warning : #pos(my_template.mtt:2: characters 3-6)
+my_template.mtt:2: characters 3-6 : Warning : check pos
+my_template.mtt:2: characters 3-6 : Warning : check pos