This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ifndef _E_TEST_H_ | |
| #define _E_TEST_H_ | |
| #include <stdint.h> | |
| #include <stdio.h> | |
| #define TEST(suite, name) \ | |
| if (_etest_is_test_included_in_run(#suite, #name, test_context)) { \ | |
| _etest_register_running_test(#suite, #name, test_context); \ | |
| } \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| trait Coercible[A, B] { | |
| def coerce(a: A): B | |
| } | |
| def coerce[A, B](a: A)(implicit coerceAB: Coercible[A, B]): B = { | |
| coerceAB.coerce(a) | |
| } | |
| trait Newtype[+T] { | |
| val value: T |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {-# LANGUAGE KindSignatures | |
| , PolyKinds | |
| , DataKinds | |
| , TypeFamilies | |
| , TypeOperators | |
| , GADTs | |
| #-} | |
| module IxResourceT where |
NewerOlder