aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/test/uri_string_property_test_SUITE.erl
diff options
context:
space:
mode:
authorPéter Dimitrov <[email protected]>2018-06-08 13:24:02 +0200
committerPéter Dimitrov <[email protected]>2018-06-11 14:53:54 +0200
commit1ff534f6e410c4904b6e65dbfc9135d34445685d (patch)
tree65fc663a372681c736e848b672d71a4bda896813 /lib/stdlib/test/uri_string_property_test_SUITE.erl
parent9ee83cf9c8d5b322e5361ebc067c00222c0c56ae (diff)
downloadotp-1ff534f6e410c4904b6e65dbfc9135d34445685d.tar.gz
otp-1ff534f6e410c4904b6e65dbfc9135d34445685d.tar.bz2
otp-1ff534f6e410c4904b6e65dbfc9135d34445685d.zip
stdlib: Fix normalization function in uri_string
- Fix parsing of hostnames that start with a number. - Update uri_string:parse/1 to be only responsible for parsing input URIs into URI components. Implicit percent-encoding normalization has been removed. - Implement percent-encoding normalization. - Update uri_string:normalize/{1,2} to include percent-encoding normalization. - Update test suites according to the new semantics. - Add new property test: normalize Change-Id: I6f37dcae2b3fcb4b29d286dbb0dfc563e8f211ae
Diffstat (limited to 'lib/stdlib/test/uri_string_property_test_SUITE.erl')
-rw-r--r--lib/stdlib/test/uri_string_property_test_SUITE.erl7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/stdlib/test/uri_string_property_test_SUITE.erl b/lib/stdlib/test/uri_string_property_test_SUITE.erl
index ae2c61c7aa..b01dd9bf65 100644
--- a/lib/stdlib/test/uri_string_property_test_SUITE.erl
+++ b/lib/stdlib/test/uri_string_property_test_SUITE.erl
@@ -22,7 +22,7 @@
-include_lib("common_test/include/ct.hrl").
-compile(export_all).
-all() -> [recompose].
+all() -> [recompose, normalize].
init_per_suite(Config) ->
ct_property_test:init_per_suite(Config).
@@ -37,3 +37,8 @@ recompose(Config) ->
ct_property_test:quickcheck(
uri_string_recompose:prop_recompose(),
Config).
+
+normalize(Config) ->
+ ct_property_test:quickcheck(
+ uri_string_recompose:prop_normalize(),
+ Config).