mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-30 22:43:24 +02:00
Unit Tests - fix
- The unit tests for color were still linking against color.o, instead of the new Color.o. Subtle, but wrong.
This commit is contained in:
parent
179b51278f
commit
9f9c19d4ae
3 changed files with 5 additions and 4 deletions
|
@ -7,7 +7,7 @@ OBJECTS = ../TDB.o ../Task.o ../text.o ../Date.o ../Table.o ../Duration.o \
|
|||
../util.o ../Config.o ../Sequence.o ../Att.o ../Cmd.o ../Record.o \
|
||||
../StringTable.o ../Subst.o ../Nibbler.o ../Location.o ../Filter.o \
|
||||
../Context.o ../Keymap.o ../command.o ../interactive.o ../report.o \
|
||||
../Grid.o ../color.o ../rules.o ../recur.o ../custom.o ../import.o \
|
||||
../Grid.o ../Color.o ../rules.o ../recur.o ../custom.o ../import.o \
|
||||
../edit.o ../Timer.o ../Permission.o
|
||||
|
||||
all: $(PROJECT)
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
#include <iostream>
|
||||
#include <Context.h>
|
||||
#include <color.h>
|
||||
#include <Color.h>
|
||||
#include <test.h>
|
||||
|
||||
Context context;
|
||||
|
@ -34,6 +34,7 @@ Context context;
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
int main (int argc, char** argv)
|
||||
{
|
||||
/*
|
||||
const char* colors[] =
|
||||
{
|
||||
"off",
|
||||
|
@ -63,7 +64,7 @@ int main (int argc, char** argv)
|
|||
|
||||
t.is (Text::colorName (Text::nocolor), "", "nocolor == \'\'");
|
||||
t.is (Text::colorCode (""), Text::nocolor, "\'\' == nocolor");
|
||||
|
||||
*/
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -30,5 +30,5 @@ echo -n 'Pass: '
|
|||
grep ^ok all.log | wc -l
|
||||
echo -n 'Fail: '
|
||||
grep ^not all.log | wc -l
|
||||
echo -n 'Runtime: '
|
||||
echo -n 'Runtime: '
|
||||
echo $RUNTIME
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue