I seem to be getting an error from the testing code. I am using C, and it does not recognize the tester() method.
The errors:
/tmp/fixture-06cea8.o: In function `Fixed_cases_should_return_number_as_string_impl':
fixture.c:(.text+0x31): undefined reference to `tester'
fixture.c:(.text+0x45): undefined reference to `tester'
fixture.c:(.text+0x59): undefined reference to `tester'
fixture.c:(.text+0x6d): undefined reference to `tester'
fixture.c:(.text+0x81): undefined reference to `tester'
/tmp/fixture-06cea8.o:fixture.c:(.text+0x95): more undefined references to `tester' follow
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Code in the testing file:
#include <criterion/criterion.h>
@Anjali Singh why did you copy the tests code? Please use the initial code:
Probably you forfeited the kata. Not the same problem as the OP one.
same with me ia am using python but it is showing wrong
Your solution has a bug, it fails for some very specific inputs. It even fails example tests, which you can see and inspect.
Your solution being buggy is not a kata issue.
This comment is hidden because it contains spoiler information about the solution
the code has been updated recently
I seem to be getting an error from the testing code. I am using C, and it does not recognize the tester() method.
The errors:
/tmp/fixture-06cea8.o: In function `Fixed_cases_should_return_number_as_string_impl':
fixture.c:(.text+0x31): undefined reference to `tester'
fixture.c:(.text+0x45): undefined reference to `tester'
fixture.c:(.text+0x59): undefined reference to `tester'
fixture.c:(.text+0x6d): undefined reference to `tester'
fixture.c:(.text+0x81): undefined reference to `tester'
/tmp/fixture-06cea8.o:fixture.c:(.text+0x95): more undefined references to `tester' follow
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Code in the testing file:
#include <criterion/criterion.h>
extern void tester(int number, const char* expected);
Test(Fixed_cases, should_return_number_as_string) {
}