Commit 18aded7a authored by Marcel van Lohuizen's avatar Marcel van Lohuizen

exp/norm: It is important that the unicode versions of the various packages align.

Replace hard-coded version strings with unicode.Version.

R=r, r
CC=golang-dev
https://golang.org/cl/6163045
parent 6c8447d4
...@@ -23,6 +23,7 @@ import ( ...@@ -23,6 +23,7 @@ import (
"sort" "sort"
"strconv" "strconv"
"strings" "strings"
"unicode"
) )
func main() { func main() {
...@@ -38,7 +39,7 @@ func main() { ...@@ -38,7 +39,7 @@ func main() {
} }
var url = flag.String("url", var url = flag.String("url",
"http://www.unicode.org/Public/6.0.0/ucd/", "http://www.unicode.org/Public/"+unicode.Version+"/ucd/",
"URL of Unicode database directory") "URL of Unicode database directory")
var tablelist = flag.String("tables", var tablelist = flag.String("tables",
"all", "all",
......
...@@ -22,6 +22,7 @@ import ( ...@@ -22,6 +22,7 @@ import (
"strconv" "strconv"
"strings" "strings"
"time" "time"
"unicode"
"unicode/utf8" "unicode/utf8"
) )
...@@ -39,7 +40,7 @@ func main() { ...@@ -39,7 +40,7 @@ func main() {
const file = "NormalizationTest.txt" const file = "NormalizationTest.txt"
var url = flag.String("url", var url = flag.String("url",
"http://www.unicode.org/Public/6.0.0/ucd/"+file, "http://www.unicode.org/Public/"+unicode.Version+"/ucd/"+file,
"URL of Unicode database directory") "URL of Unicode database directory")
var localFiles = flag.Bool("local", var localFiles = flag.Bool("local",
false, false,
...@@ -48,7 +49,7 @@ var localFiles = flag.Bool("local", ...@@ -48,7 +49,7 @@ var localFiles = flag.Bool("local",
var logger = log.New(os.Stderr, "", log.Lshortfile) var logger = log.New(os.Stderr, "", log.Lshortfile)
// This regression test runs the test set in NormalizationTest.txt // This regression test runs the test set in NormalizationTest.txt
// (taken from http://www.unicode.org/Public/6.0.0/ucd/). // (taken from http://www.unicode.org/Public/<unicode.Version>/ucd/).
// //
// NormalizationTest.txt has form: // NormalizationTest.txt has form:
// @Part0 # Specific cases // @Part0 # Specific cases
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment