🐛 Fix entry_test.go assertions for new id field
This commit is contained in:
parent
136546d655
commit
fbcec20221
1 changed files with 2 additions and 2 deletions
|
|
@ -33,14 +33,14 @@ func TestEntryMarshal(t *testing.T) {
|
|||
}{
|
||||
{"no-title", "", when, simple, "", nolines, ErrorMissingTitle},
|
||||
{"zero-date", "Empty title", time.Time{}, simple, "", nolines, ErrorMissingDate},
|
||||
{"one-line", "A Title", when, simple, "@begin " + whens + " - A Title @end", nolines, nil},
|
||||
{"one-line", "A Title", when, simple, "@begin " + whens + " - A Title", []string{"@id .+ @end"}, nil},
|
||||
{
|
||||
"one-field",
|
||||
"Title 2",
|
||||
when,
|
||||
[]Meta{{"age", 41}},
|
||||
"@begin " + whens + " - Title 2",
|
||||
[]string{"@age 41 @end"},
|
||||
[]string{"@age 41", "@id .*"},
|
||||
nil,
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue