blob: 90e64bec91394b7ea3bcc425d21308681c28393a [file] [log] [blame]
giodcd9fef2024-09-26 14:42:59 +02001package main
2
3import (
4 "testing"
5)
6
7func TestPasswordInvalid(t *testing.T) {
8 errs := validatePassword("foobar")
9 if len(errs) != 2 {
10 t.Fatal(errs)
11 }
12}
13
14func TestPasswordValid(t *testing.T) {
15 errs := validatePassword("foBa2r-gdkjS1-SA0120")
16 if len(errs) != 0 {
17 t.Fatal(errs)
18 }
19}