Browse Source

Fix return value of regexp string test
Closes #3556

Rémi Verschelde 9 năm trước cách đây
mục cha
commit
746a2996c9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      bin/tests/test_string.cpp

+ 1 - 1
bin/tests/test_string.cpp

@@ -472,7 +472,7 @@ bool test_26() {
 	{
 		printf("%ls\n", regexp.get_capture(i).c_str());
 	}
-	return res;
+	return (res>=0);
 };
 
 struct test_27_data {