]> granicus.if.org Git - php/commitdiff
- Fix test, in some cases the first significant number in the time
authorDerick Rethans <derick@php.net>
Thu, 31 Oct 2002 06:37:18 +0000 (06:37 +0000)
committerDerick Rethans <derick@php.net>
Thu, 31 Oct 2002 06:37:18 +0000 (06:37 +0000)
  was a 3

ext/standard/tests/strings/004.phpt

index de721eff6fa5648e50f5f9d70dc4ceec3ce6911f..b9904c614ae3bcda28b6cdda4e5c5ee693bc18f8 100644 (file)
@@ -31,54 +31,54 @@ for ($i = 0; $i < $times; $i++) {
 
 stats('str_shuffle', $a);
 ?>
---EXPECTF--
+--EXPECTREGEX--
 shuffle
-1234: 3%d: 0.04%d
-1243: 3%d: 0.04%d
-1324: 3%d: 0.04%d
-1342: 3%d: 0.04%d
-1423: 3%d: 0.04%d
-1432: 3%d: 0.04%d
-2134: 3%d: 0.04%d
-2143: 3%d: 0.04%d
-2314: 3%d: 0.04%d
-2341: 3%d: 0.04%d
-2413: 3%d: 0.04%d
-2431: 3%d: 0.04%d
-3124: 3%d: 0.04%d
-3142: 3%d: 0.04%d
-3214: 3%d: 0.04%d
-3241: 3%d: 0.04%d
-3412: 3%d: 0.04%d
-3421: 3%d: 0.04%d
-4123: 3%d: 0.04%d
-4132: 3%d: 0.04%d
-4213: 3%d: 0.04%d
-4231: 3%d: 0.04%d
-4312: 3%d: 0.04%d
-4321: 3%d: 0.04%d
+1234: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+1243: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+1324: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+1342: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+1423: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+1432: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+2134: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+2143: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+2314: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+2341: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+2413: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+2431: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+3124: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+3142: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+3214: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+3241: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+3412: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+3421: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+4123: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+4132: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+4213: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+4231: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+4312: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+4321: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
 str_shuffle
-1234: 3%d: 0.04%d
-1243: 3%d: 0.04%d
-1324: 3%d: 0.04%d
-1342: 3%d: 0.04%d
-1423: 3%d: 0.04%d
-1432: 3%d: 0.04%d
-2134: 3%d: 0.04%d
-2143: 3%d: 0.04%d
-2314: 3%d: 0.04%d
-2341: 3%d: 0.04%d
-2413: 3%d: 0.04%d
-2431: 3%d: 0.04%d
-3124: 3%d: 0.04%d
-3142: 3%d: 0.04%d
-3214: 3%d: 0.04%d
-3241: 3%d: 0.04%d
-3412: 3%d: 0.04%d
-3421: 3%d: 0.04%d
-4123: 3%d: 0.04%d
-4132: 3%d: 0.04%d
-4213: 3%d: 0.04%d
-4231: 3%d: 0.04%d
-4312: 3%d: 0.04%d
-4321: 3%d: 0.04%d
+1234: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+1243: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+1324: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+1342: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+1423: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+1432: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+2134: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+2143: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+2314: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+2341: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+2413: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+2431: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+3124: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+3142: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+3214: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+3241: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+3412: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+3421: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+4123: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+4132: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+4213: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+4231: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+4312: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]
+4321: 3[0-9][0-9][0-9]: 0.0[3-4][0-9]