We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1154728 commit 48326a4Copy full SHA for 48326a4
test/runtests.jl
@@ -1080,6 +1080,24 @@ end
1080
1081
close(conn)
1082
end
1083
+
1084
+ @testset "Interval Regex" begin
1085
+ regex = LibPQ.INTERVAL_REGEX[]
1086
+ inputs = [
1087
+ "P1Y2M3DT4H5M6S",
1088
+ "PT6.1S",
1089
+ "PT6.01S",
1090
+ "PT6.001S",
1091
+ "PT6.0001S",
1092
+ "PT6.1001S",
1093
+ "P100Y49D",
1094
+ "P1DT-1H",
1095
+ "P-1M1D",
1096
+ ]
1097
+ for input in inputs
1098
+ @test match(regex, input) !== nothing
1099
+ end
1100
1101
1102
1103
0 commit comments