Skip to content
Snippets Groups Projects
Commit 231df7b2 authored by Guyslain's avatar Guyslain
Browse files

IntDataSet.testReadInvalidInteger should be commented initially

parent c3e3703c
No related branches found
No related tags found
No related merge requests found
......@@ -16,27 +16,28 @@ class IntDataTest {
assertEquals(-15, intData.read("-15"));
}
@Test
void testReadInvalidInteger() {
try {
intData.read("abc");
} catch (Exception e) {
assertEquals("Mismatch when reading a string, expecting integer but got abc",e.toString());
}
try {
intData.read("42.0");
} catch (Exception e) {
assertEquals("Mismatch when reading a string, expecting integer but got 42.0",e.toString());
}
try {
intData.read("");
} catch (Exception e) {
assertEquals(
"Mismatch when reading a string, expecting integer but got <nothing>",
e.toString()
);
}
}
// TODO décommenter le test
// @Test
// void testReadInvalidInteger() {
// try {
// intData.read("abc");
// } catch (Exception e) {
// assertEquals("Mismatch when reading a string, expecting integer but got abc",e.toString());
// }
// try {
// intData.read("42.0");
// } catch (Exception e) {
// assertEquals("Mismatch when reading a string, expecting integer but got 42.0",e.toString());
// }
// try {
// intData.read("");
// } catch (Exception e) {
// assertEquals(
// "Mismatch when reading a string, expecting integer but got <nothing>",
// e.toString()
// );
// }
// }
// TODO décommenter le test
// @Test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment