Skip to content

Commit

Permalink
(Close #37) Add -inject test code
Browse files Browse the repository at this point in the history
Signed-off-by: hahwul <hahwul@gmail.com>
  • Loading branch information
hahwul committed Oct 13, 2021
1 parent db26db4 commit 9116cd4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkg/gee/string_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,18 @@ func TestStringProc(t *testing.T) {
},
want: "4321dcba",
},
{
name: "test6 (inject)",
args: args{
l: "abcd1234",
stdLine: 0,
options: model.Options{
Inject: "-- %%INJECT%% --",
Format: "",
},
},
want: "-- abcd1234 --",
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand Down

0 comments on commit 9116cd4

Please sign in to comment.