Skip to content

Instantly share code, notes, and snippets.

@dennis
Created March 23, 2011 20:07
Show Gist options
  • Save dennis/883843 to your computer and use it in GitHub Desktop.
Save dennis/883843 to your computer and use it in GitHub Desktop.
diff --git a/tests/Makefile b/tests/Makefile
index 10d68e5..193c645 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -1,5 +1,5 @@
CC=g++
-CFLAGS=-g -Wall
+CFLAGS=-g -Wall -I../src
all: main
diff --git a/tests/build/main b/tests/build/main
index 5883ac8..2f10211 100755
Binary files a/tests/build/main and b/tests/build/main differ
diff --git a/tests/src/main.cc b/tests/src/main.cc
index 15c35a9..2341f6b 100644
--- a/tests/src/main.cc
+++ b/tests/src/main.cc
@@ -1,9 +1,10 @@
#include <iostream>
+#include "libasciify.h"
int main(int argc, char *argv[]) {
for(int i = 1; i < argc; i++) {
libasciify l(argv[i]);
- std::cout << "ascii_str: " << l::ascii_str << std::endl;
+ std::cout << "ascii_str: " << l.ascii_str << std::endl;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment