Skip to content

Commit

Permalink
ajoute un test
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphaël Squelbut committed Nov 23, 2023
1 parent 6a41a80 commit e4f1242
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions lib/sfregexp/regexp_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package sfregexp

import (
"testing"
)

func TestValidSiret(t *testing.T) {
type args struct {
siret string
}
tests := []struct {
name string
args args
want bool
}{
{"cas normal", args{"33516816700021"}, true},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if got := ValidSiret(tt.args.siret); got != tt.want {
t.Errorf("ValidSiret() = %v, want %v", got, tt.want)
}
})
}
}

0 comments on commit e4f1242

Please sign in to comment.