From 15ae5809f01486f1f1595fe09ee97a24791f4f41 Mon Sep 17 00:00:00 2001 From: DTB Date: Mon, 4 Sep 2023 10:34:34 -0400 Subject: [PATCH] fix tests, Makefile --- unicode/1.test | 2 +- unicode/2.test | 2 +- unicode/3.test | 2 +- unicode/Makefile | 7 +++++-- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/unicode/1.test b/unicode/1.test index 346ec2f..401034e 100755 --- a/unicode/1.test +++ b/unicode/1.test @@ -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 diff --git a/unicode/2.test b/unicode/2.test index 6336fd6..b3d9dd9 100755 --- a/unicode/2.test +++ b/unicode/2.test @@ -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 diff --git a/unicode/3.test b/unicode/3.test index 415f771..574e953 100755 --- a/unicode/3.test +++ b/unicode/3.test @@ -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 diff --git a/unicode/Makefile b/unicode/Makefile index cf80522..b192cd9 100644 --- a/unicode/Makefile +++ b/unicode/Makefile @@ -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