1
0
Fork 0

Complete fixture rows

This commit is contained in:
Daniele Tricoli 2015-12-11 03:24:27 +01:00
parent 8774132261
commit 93f6e2d164
1 changed files with 3 additions and 6 deletions

View File

@ -31,12 +31,9 @@ func (s *Store) init() (dirName string, err error) {
// Insert some data for testing.
func (s *Store) fixture() {
s.db.Exec(`INSERT INTO unicode_data (codepoint, name, category)
VALUES ('1F60E', 'SMILING FACE WITH SUNGLASSES', 'So')`)
s.db.Exec(`INSERT INTO unicode_data (codepoint, name, category)
VALUES ('1F602', 'FACE WITH TEARS OF JOY', 'So')`)
s.db.Exec(`INSERT INTO unicode_data (codepoint, name, category)
VALUES ('1F4D7', 'GREEN BOOK', 'So')`)
s.db.Exec(`INSERT INTO unicode_data VALUES ('1F60E', 'SMILING FACE WITH SUNGLASSES', 'So', '', '', '', '', '', '', '', '', '', '', '', '')`)
s.db.Exec(`INSERT INTO unicode_data VALUES ('1F602', 'FACE WITH TEARS OF JOY', 'So', '', '', '', '', '', '', '', '', '', '', '', '')`)
s.db.Exec(`INSERT INTO unicode_data VALUES ('1F4D7', 'GREEN BOOK', 'So', '', '', '', '', '', '', '', '', '', '', '', '')`)
}
func TestSearch(t *testing.T) {