diff --git a/scraping_test.go b/scraping_test.go
index 80f8bca..13f0140 100644
--- a/scraping_test.go
+++ b/scraping_test.go
@@ -21,10 +21,10 @@ const HTML_STRING = `
- product1 | 10 | 100 |
- product2 | 20 | 200 |
- product3 | 30 | 300 |
- product4 | 40 | 400 |
+ product1 | 10 | 100 |
+ product2 | 20 | 200 |
+ product3 | 30 | 300 |
+ product4 | 40 | 400 |
@@ -36,7 +36,10 @@ func TestFilterXPath(t *testing.T) {
Want []string
}{
{"//title", []string{"title"}},
- {"//table[@id='product-table']//tr//td[last()]", []string{"100 | ", "200 | ", "300 | ", "400 | "}},
+ {"//table[@id='product-table']//tr//td[last()]", []string{`100 | `, `200 | `, `300 | `, `400 | `}},
+ {"//td[@class='price']", []string{`100 | `, `200 | `, `300 | `, `400 | `}},
+ {"//table[@id='product-table']//tr//td[2]", []string{`10 | `, `20 | `, `30 | `, `40 | `}},
+ {"//td[@class='stock']", []string{`10 | `, `20 | `, `30 | `, `40 | `}},
}
for _, test := range tests {