Fixed missing headers for test
This commit is contained in:
1
.github/workflows/test.yml
vendored
1
.github/workflows/test.yml
vendored
@ -28,5 +28,4 @@ jobs:
|
|||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
ls build/
|
|
||||||
./build/test/tests
|
./build/test/tests
|
@ -5,12 +5,11 @@
|
|||||||
* https://opensource.org/licenses/MIT
|
* https://opensource.org/licenses/MIT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "poker/card.h"
|
#include "tests.h"
|
||||||
#include "poker/poker.h"
|
|
||||||
|
|
||||||
int main() {
|
int32_t main() {
|
||||||
return (
|
return (
|
||||||
test_card() == 0 &&
|
test_card() ||
|
||||||
test_poker() == 0
|
test_poker()
|
||||||
);
|
);
|
||||||
}
|
}
|
12
test/tests.h
Normal file
12
test/tests.h
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2021 Dominic Masters
|
||||||
|
*
|
||||||
|
* This software is released under the MIT License.
|
||||||
|
* https://opensource.org/licenses/MIT
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
#include "poker/card.h"
|
||||||
|
#include "poker/poker.h"
|
||||||
|
|
||||||
|
int32_t main();
|
Reference in New Issue
Block a user