🐛 Only trim bang on out
This commit is contained in:
parent
a8cbfd087f
commit
0b2e178066
4 changed files with 20 additions and 5 deletions
|
|
@ -38,10 +38,10 @@ func TestParse(t *testing.T) {
|
|||
{"on-value", "on", true},
|
||||
{"no-value", "no", false},
|
||||
{"off-value", "off", false},
|
||||
{"skip-parsing-num", "!42", "42"},
|
||||
{"skip-parsing-bool", "!false", "false"},
|
||||
{"skip-parsing-time", "!" + when.Format(time.RFC3339), when.Format(time.RFC3339)},
|
||||
{"skip-parsing-duration", "!15 mins", "15 mins"},
|
||||
{"skip-parsing-num", "!42", "!42"},
|
||||
{"skip-parsing-bool", "!false", "!false"},
|
||||
{"skip-parsing-time", "!" + when.Format(time.RFC3339), "!" + when.Format(time.RFC3339)},
|
||||
{"skip-parsing-duration", "!15 mins", "!15 mins"},
|
||||
}
|
||||
|
||||
for _, tt := range tests {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue