You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			37 lines
		
	
	
		
			459 B
		
	
	
	
		
			C
		
	
			
		
		
	
	
			37 lines
		
	
	
		
			459 B
		
	
	
	
		
			C
		
	
#include <stddef.h>
 | 
						|
#include <stdint.h>
 | 
						|
#include <stdbool.h>
 | 
						|
 | 
						|
#include "console.h"
 | 
						|
 | 
						|
#define TEST "Test "
 | 
						|
#define PASS "PASS\n"
 | 
						|
#define FAIL "FAIL\n"
 | 
						|
 | 
						|
extern int sc_test_1(void);
 | 
						|
 | 
						|
// i < 100
 | 
						|
void print_test_number(int i)
 | 
						|
{
 | 
						|
	puts(TEST);
 | 
						|
	putchar(48 + i/10);
 | 
						|
	putchar(48 + i%10);
 | 
						|
	putchar(':');
 | 
						|
}
 | 
						|
 | 
						|
int main(void)
 | 
						|
{
 | 
						|
	int fail = 0;
 | 
						|
 | 
						|
	console_init();
 | 
						|
 | 
						|
	print_test_number(1);
 | 
						|
	if (sc_test_1() != 0) {
 | 
						|
		fail = 1;
 | 
						|
		puts(FAIL);
 | 
						|
	} else
 | 
						|
		puts(PASS);
 | 
						|
 | 
						|
	return fail;
 | 
						|
}
 |