-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Arnaud Vazard
committed
Nov 23, 2015
1 parent
4892810
commit 92eeaa3
Showing
6 changed files
with
81 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
*.exe | ||
/goxxx | ||
/storage/* | ||
*.sqlite | ||
*.txt | ||
goxxx_testing.ini | ||
*.exe | ||
/goxxx | ||
/storage/* | ||
*.sqlite | ||
*.txt | ||
goxxx_testing.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
language: go | ||
|
||
go: | ||
- 1.4.3 | ||
- 1.5.1 | ||
|
||
install: | ||
- go get -t ./... | ||
|
||
script: | ||
- go test -v ./... | ||
|
||
#branches: | ||
# only: | ||
# - master | ||
|
||
language: go | ||
|
||
go: | ||
- 1.4.3 | ||
- 1.5.1 | ||
|
||
install: | ||
- go get -t ./... | ||
|
||
script: | ||
- go test -v ./... | ||
|
||
#branches: | ||
# only: | ||
# - master | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// The MIT License (MIT) | ||
// | ||
// Copyright (c) 2015 Arnaud Vazard | ||
// | ||
// See LICENSE file. | ||
package quote | ||
|
||
import ( | ||
"testing" | ||
) | ||
|
||
func Test_prepareForSearch(t *testing.T) { | ||
|
||
str := `This IS a; string.with, punctuation, quotes', and upper: "case" ` | ||
expectedResult := "this is a string with punctuation quotes and upper case" | ||
result := prepareForSearch(str) | ||
if result != expectedResult { | ||
t.Errorf("Test result differ from expected result: \n Test result:\t%#v\nExpected result: %#v\n\n", result, expectedResult) | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
<!-- Source: https://developer.mozilla.org/en-US/Learn/HTML/Write_a_simple_page_in_HTML --> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>The | ||
Ultimate | ||
|
||
Unicorn | ||
|
||
</title> | ||
</head> | ||
<body> | ||
This is a page with a title and a unicorn | ||
<img src="unicorn_pic.png" alt="Unicorn picture :)" /> | ||
</body> | ||
</html> | ||
<!-- Source: https://developer.mozilla.org/en-US/Learn/HTML/Write_a_simple_page_in_HTML --> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>The | ||
Ultimate | ||
|
||
Unicorn | ||
|
||
</title> | ||
</head> | ||
<body> | ||
This is a page with a title and a unicorn | ||
<img src="unicorn_pic.png" alt="Unicorn picture :)" /> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<!-- Source: https://developer.mozilla.org/en-US/Learn/HTML/Write_a_simple_page_in_HTML --> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>The Ultimate Unicorn</title> | ||
</head> | ||
<body> | ||
This is a page with a title and a unicorn | ||
<img src="unicorn_pic.png" alt="Unicorn picture :)" /> | ||
</body> | ||
</html> | ||
<!-- Source: https://developer.mozilla.org/en-US/Learn/HTML/Write_a_simple_page_in_HTML --> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>The Ultimate Unicorn</title> | ||
</head> | ||
<body> | ||
This is a page with a title and a unicorn | ||
<img src="unicorn_pic.png" alt="Unicorn picture :)" /> | ||
</body> | ||
</html> |
22 changes: 11 additions & 11 deletions
22
webinfo/tests_data/page_with_title_containing_spaces.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<!-- Source: https://developer.mozilla.org/en-US/Learn/HTML/Write_a_simple_page_in_HTML --> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title> The Ultimate Unicorn </title> | ||
</head> | ||
<body> | ||
This is a page with a title and a unicorn | ||
<img src="unicorn_pic.png" alt="Unicorn picture :)" /> | ||
</body> | ||
</html> | ||
<!-- Source: https://developer.mozilla.org/en-US/Learn/HTML/Write_a_simple_page_in_HTML --> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title> The Ultimate Unicorn </title> | ||
</head> | ||
<body> | ||
This is a page with a title and a unicorn | ||
<img src="unicorn_pic.png" alt="Unicorn picture :)" /> | ||
</body> | ||
</html> |