| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f5d2e1b commit 04fc24b
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,19 +17,19 @@ int main(){ | |||
| 17 | 17 | { // Tests | |
| 18 | 18 | { // array más corto que string | |
| 19 | 19 | std::array<char,5> a = PackString("Hello, World!"); | |
| 20 | - assert( UnpackString(a) == "Hello" ); | ||
| 20 | + assert( "Hello" == UnpackString(a) ); | ||
| 21 | 21 | } | |
| 22 | 22 | { // String<N> más corto que string | |
| 23 | 23 | String<4> s = PackString("Hello, World!"); | |
| 24 | - assert( UnpackString(s) == "Hell" ); | ||
| 24 | + assert( "Hell" == UnpackString(s) ); | ||
| 25 | 25 | } | |
| 26 | 26 | { // String<N> igual de largo que string | |
| 27 | 27 | String<13> s = PackString("Hello, World!"); | |
| 28 | - assert( UnpackString(s) == "Hello, World!" ); | ||
| 28 | + assert( "Hello, World!" == UnpackString(s) ); | ||
| 29 | 29 | } | |
| 30 | 30 | { // String<N> más largo que string | |
| 31 | 31 | String<42> s = PackString("Hello, World!"); | |
| 32 | - assert( UnpackString(s) == "Hello, World!" ); | ||
| 32 | + assert( "Hello, World!" == UnpackString(s) ); | ||
| 33 | 33 | } | |
| 34 | 34 | } | |
| 35 | 35 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments