1
0

fix tests, Makefile

This commit is contained in:
dtb 2023-09-04 10:34:34 -04:00
parent 81dd6982aa
commit 15ae5809f0
4 changed files with 8 additions and 5 deletions

View File

@ -1,3 +1,3 @@
#!/bin/sh
printf '%s\n%s\n%s\n%s\n' U+0041 U+0391 U+002E | ./utf 8
printf '%s\n%s\n%s\n%s\n' U+0041 U+0391 U+002E | ./utf 8 | od -t x1

View File

@ -1,3 +1,3 @@
#!/bin/sh
printf '%s\n%s\n%s\n' U+D55C U+AD6D U+C5B4 | ./utf 8
printf '%s\n%s\n%s\n' U+D55C U+AD6D U+C5B4 | ./utf 8 | od -t x1

View File

@ -1,3 +1,3 @@
#!/bin/sh
printf '%s\n%s\n%s\n' U+65E5 U+672C U+8A9E | ./utf 8
printf '%s\n%s\n%s\n' U+65E5 U+672C U+8A9E | ./utf 8 | od -t x1

View File

@ -1,5 +1,8 @@
all: utf
sh test.sh
utf: utf.o libunicode.o
$(CC) -g -o utf8 libunicode.o utf.o
$(CC) -g -o utf libunicode.o utf.o
libunicode.o:
@ -9,4 +12,4 @@ utf.o: libunicode.h utf.c
clean:
rm -f *.o utf
.PHONY: clean
.PHONY: all clean