Skip to content

Commit

Permalink
Test program to expand tabs and return characters in locals and toolt…
Browse files Browse the repository at this point in the history
…ips.
  • Loading branch information
epasveer committed Nov 28, 2023
1 parent a160e16 commit 53acb68
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/hellopoem/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hellopoem
10 changes: 10 additions & 0 deletions tests/hellopoem/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.PHONY: all
all: hellopoem

hellopoem: hellopoem.cpp
g++ -g -o hellopoem hellopoem.cpp

.PHONY: clean
clean:
rm -f hellopoem hellopoem.o

5 changes: 5 additions & 0 deletions tests/hellopoem/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

A good program to test escaping tabs and return characters
in the locals tab and tooltips.


17 changes: 17 additions & 0 deletions tests/hellopoem/hellopoem.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include <iostream>
#include <stdlib.h>

int main (int argc, char* argv[]) {

std::string poem = "'Treasure' by Lucillius\n\n"
"\tThey call thee rich; I deem thee poor;\n"
"\tSince, if thou dares not use thy store,\n"
"\tBut saves only for thine heirs,\n"
"\tThe treasure is not thine, but theirs.\n";

// Print it.
std::cout << poem << std::endl;

return 0;
}

0 comments on commit 53acb68

Please sign in to comment.