|
110 | 110 | ;; --------------------------------------------------------------------------------
|
111 | 111 |
|
112 | 112 | (ert-deftest test-word-p ()
|
113 |
| - (should-not (equal nil (string-inflection-word-p "foo"))) |
114 |
| - (should-not (equal nil (string-inflection-word-p "eĥo"))) |
115 |
| - (should (equal nil (string-inflection-word-p "foo_bar"))) |
116 |
| - (should (equal nil (string-inflection-word-p "eĥo_ŝanĝo")))) |
| 113 | + (should (string-inflection-word-p "foo")) |
| 114 | + (should (string-inflection-word-p "eĥo")) |
| 115 | + (should-not (string-inflection-word-p "foo_bar")) |
| 116 | + (should-not (string-inflection-word-p "eĥo_ŝanĝo"))) |
117 | 117 |
|
118 | 118 | (ert-deftest test-underscore-p ()
|
119 |
| - (should-not (equal nil (string-inflection-underscore-p "foo"))) |
120 |
| - (should-not (equal nil (string-inflection-underscore-p "eĥo"))) |
121 |
| - (should-not (equal nil (string-inflection-underscore-p "foo_bar"))) |
122 |
| - (should-not (equal nil (string-inflection-underscore-p "eĥo_ŝanĝo")))) |
| 119 | + (should (string-inflection-underscore-p "foo")) |
| 120 | + (should (string-inflection-underscore-p "eĥo")) |
| 121 | + (should (string-inflection-underscore-p "foo_bar")) |
| 122 | + (should (string-inflection-underscore-p "eĥo_ŝanĝo"))) |
123 | 123 |
|
124 | 124 | (ert-deftest test-pascal-case-p ()
|
125 |
| - (should-not (equal nil (string-inflection-pascal-case-p "Foo"))) |
126 |
| - (should-not (equal nil (string-inflection-pascal-case-p "Eĥo"))) |
127 |
| - (should-not (equal nil (string-inflection-pascal-case-p "FooBar"))) |
128 |
| - (should-not (equal nil (string-inflection-pascal-case-p "EĥoŜanĝo")))) |
| 125 | + (should (string-inflection-pascal-case-p "Foo")) |
| 126 | + (should (string-inflection-pascal-case-p "Eĥo")) |
| 127 | + (should (string-inflection-pascal-case-p "FooBar")) |
| 128 | + (should (string-inflection-pascal-case-p "EĥoŜanĝo")) |
| 129 | + (should-not (string-inflection-pascal-case-p "FOO")) |
| 130 | + (should (string-inflection-pascal-case-p "Eĥĥ"))) |
129 | 131 |
|
130 | 132 | (ert-deftest test-camelcase-p ()
|
131 |
| - (should (equal nil (string-inflection-camelcase-p "foo"))) |
132 |
| - (should (equal nil (string-inflection-camelcase-p "eĥo"))) |
133 |
| - (should-not (equal nil (string-inflection-camelcase-p "fooBar"))) |
134 |
| - (should-not (equal nil (string-inflection-camelcase-p "eĥoŜanĝo")))) |
| 133 | + (should-not (string-inflection-camelcase-p "foo")) |
| 134 | + (should-not (string-inflection-camelcase-p "eĥo")) |
| 135 | + (should (string-inflection-camelcase-p "fooBar")) |
| 136 | + (should (string-inflection-camelcase-p "eĥoŜanĝo"))) |
135 | 137 |
|
136 | 138 | (ert-deftest test-lower-upcase-p ()
|
137 |
| - (should-not (equal nil (string-inflection-upcase-p "FOO"))) |
138 |
| - (should-not (equal nil (string-inflection-upcase-p "EĤO"))) |
139 |
| - (should-not (equal nil (string-inflection-upcase-p "FOO_BAR"))) |
140 |
| - (should-not (equal nil (string-inflection-upcase-p "EĤO_ŜANĜO")))) |
| 139 | + (should (string-inflection-upcase-p "FOO")) |
| 140 | + (should (string-inflection-upcase-p "EĤO")) |
| 141 | + (should (string-inflection-upcase-p "FOO_BAR")) |
| 142 | + (should (string-inflection-upcase-p "EĤO_ŜANĜO"))) |
141 | 143 |
|
142 | 144 | (ert-deftest test-kebab-case-p ()
|
143 |
| - (should-not (equal nil (string-inflection-kebab-case-p "foo-bar"))) |
144 |
| - (should-not (equal nil (string-inflection-kebab-case-p "eĥo-ŝanĝo")))) |
| 145 | + (should (string-inflection-kebab-case-p "foo-bar")) |
| 146 | + (should (string-inflection-kebab-case-p "eĥo-ŝanĝo"))) |
145 | 147 |
|
146 | 148 | (ert-deftest test-capital-underscore-p ()
|
147 |
| - (should-not (equal nil (string-inflection-capital-underscore-p "Foo_Bar"))) |
148 |
| - (should-not (equal nil (string-inflection-capital-underscore-p "Eĥo_Ŝanĝo")))) |
| 149 | + (should (string-inflection-capital-underscore-p "Foo_Bar")) |
| 150 | + (should (string-inflection-capital-underscore-p "Eĥo_Ŝanĝo"))) |
149 | 151 |
|
150 | 152 | ;; -------------------------------------------------------------------------------- Target word of cursor position
|
151 | 153 |
|
|
0 commit comments