github.com/ncw/rclone@v1.48.1-0.20190724201158-a35aa1360e3e/vfs/errors_test.go (about) 1 package vfs 2 3 import ( 4 "testing" 5 6 "github.com/stretchr/testify/assert" 7 ) 8 9 func TestErrorError(t *testing.T) { 10 assert.Equal(t, "Success", OK.Error()) 11 assert.Equal(t, "Function not implemented", ENOSYS.Error()) 12 assert.Equal(t, "Low level error 99", Error(99).Error()) 13 }