FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Literal on the legt of comparisson to visually diferentiante from ass… · AmitSna/StringNAndBlockStream@04fc24b · GitHub

Repository navigation

Commit 04fc24b

Browse files
José María Sola
committed
Literal on the legt of comparisson to visually diferentiante from assignment.
1 parent f5d2e1b commit 04fc24b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎StringNDriver.cpp‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ int main(){
1717
{ // Tests
1818
{ // array más corto que string
1919
std::array<char,5> a = PackString("Hello, World!");
20-
assert( UnpackString(a) == "Hello" );
20+
assert( "Hello" == UnpackString(a) );
2121
}
2222
{ // String<N> más corto que string
2323
String<4> s = PackString("Hello, World!");
24-
assert( UnpackString(s) == "Hell" );
24+
assert( "Hell" == UnpackString(s) );
2525
}
2626
{ // String<N> igual de largo que string
2727
String<13> s = PackString("Hello, World!");
28-
assert( UnpackString(s) == "Hello, World!" );
28+
assert( "Hello, World!" == UnpackString(s) );
2929
}
3030
{ // String<N> más largo que string
3131
String<42> s = PackString("Hello, World!");
32-
assert( UnpackString(s) == "Hello, World!" );
32+
assert( "Hello, World!" == UnpackString(s) );
3333
}
3434
}
3535

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL