diff options
Diffstat (limited to 'internal/nametransform/longnames_test.go')
-rw-r--r-- | internal/nametransform/longnames_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/nametransform/longnames_test.go b/internal/nametransform/longnames_test.go index dc4098c..62073ec 100644 --- a/internal/nametransform/longnames_test.go +++ b/internal/nametransform/longnames_test.go @@ -6,17 +6,17 @@ import ( func TestIsLongName(t *testing.T) { n := "gocryptfs.longname.LkwUdALvV_ANnzQN6ZZMYnxxfARD3IeZWCKnxGJjYmU=.name" - if IsLongName(n) != 2 { + if IsLongName(n) != LongNameFilename { t.Errorf("False negative") } n = "gocryptfs.longname.LkwUdALvV_ANnzQN6ZZMYnxxfARD3IeZWCKnxGJjYmU=" - if IsLongName(n) != 1 { + if IsLongName(n) != LongNameContent { t.Errorf("False negative") } n = "LkwUdALvV_ANnzQN6ZZMYnxxfARD3IeZWCKnxGJjYmU=" - if IsLongName(n) != 0 { + if IsLongName(n) != LongNameNone { t.Errorf("False positive") } } |