@@ -20,10 +20,11 @@ } unittest { - assert( sprintf!"%s == %d"("1+2", 3) == "1+2 == 3" ); - assert( sprintf!"%s == %04d"("1+2", 3) == "1+2 == 0003" ); + assert_eq( sprintf!"%s == %04d"("1+2", 3), "1+2 == 0003" ); + assert_eq( sprintf!"%2$s == %1$s"("1+2", 5, 8), "5 == 1+2" ); + assert_throw!Error( sprintf!"%s%s"(1) ); } /// Create an exception with automatically completed filename and lineno information