File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,26 @@ shellscriptSpecs = describe "Shellscript validation and retrieval" $ do
113
113
let result = hasShellExtension subject
114
114
result `shouldBe` True
115
115
116
+ it " should be valid if file has .ash extension" $ do
117
+ let subject = " example.ash"
118
+ let result = hasShellExtension subject
119
+ result `shouldBe` True
120
+
121
+ it " should be valid if file has .dash extension" $ do
122
+ let subject = " example.dash"
123
+ let result = hasShellExtension subject
124
+ result `shouldBe` True
125
+
126
+ it " should be valid if file has .bash extension" $ do
127
+ let subject = " example.bash"
128
+ let result = hasShellExtension subject
129
+ result `shouldBe` True
130
+
131
+ it " should be valid if file has .ksh extension" $ do
132
+ let subject = " example.ksh"
133
+ let result = hasShellExtension subject
134
+ result `shouldBe` True
135
+
116
136
it " should not be valid if file has no extension" $ do
117
137
let subject = " example"
118
138
let result = hasShellExtension subject
You can’t perform that action at this time.
0 commit comments