Skip to content

Commit

Permalink
Fixing test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew-Mosior committed Nov 23, 2024
1 parent a76f0bc commit 24e30c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/src/AuthorizationTest.idr
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module AuthorizationTest

import Network.HTTP
import Control.Monad.Error.Either
import Data.String
import Data.String.Base64

%default partial
Expand All @@ -12,7 +13,7 @@ test_base64_encoding_decoding =
let user = "aladdin"
passwd = "opensesame"
(_, basicauth) = applyBasicAuth user passwd
basicauth' = base64DecodeString basicauth
basicauth' = base64DecodeString $ snd $ break ((==) ' ') basicauth
in case basicauth' of
Nothing =>
idris_crash "couldn't base64 decode string."
Expand Down

0 comments on commit 24e30c8

Please sign in to comment.