<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><div data-html-editor-font-wrapper="true" style="font-family: arial, sans-serif; font-size: 13px;"> <br><br>August 18, 2019 5:51 PM, "Isira Seneviratne" <<a target="_blank" tabindex="-1" href="mailto:%22Isira%20Seneviratne%22%20<isirasen96@gmail.com>">isirasen96@gmail.com</a>> wrote:<br> <blockquote><div><div><div dir="auto"> <div> <div> <div dir="ltr">On Mon, Aug 19, 2019, 1:42 AM Alex Henrie <<a rel="external nofollow noopener noreferrer" target="_blank" tabindex="-1" href="mailto:alexhenrie24@gmail.com">alexhenrie24@gmail.com</a>> wrote:</div> <blockquote style="margin: 0 0 0 .8ex;border-left: 1px #ccc solid;padding-left: 1ex">+ * Copyright (C) 2019 Isira Seneviratne<br><br>- static const char expected[12] = "Hello World!";<br>+ static const char expected[12] = {<br>'H','e','l','l','o','W','o','r','l','d','!','\0' };<br><br>All you had to do was remove the number 12 and let the compiler<br>determine the size of the array automatically. And you really<br>shouldn't add your name at the top of the file unless you wrote a<br>substantial chunk of the file.<br><br>-Alex</blockquote> </div> </div> <div dir="auto"></div> <div dir="auto">Okay, thanks.</div> <div dir="auto"></div> <div dir="auto">By the way, why would the tests fail?</div> </div></div></div></blockquote>Because you left out the space character in the string.<br><br><signature>Chip</signature> </div></body></html>