summary refs log tree commit diff stats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* fixed unit testshut2010-01-204-62/+82
|
* commandlist: bugfixhut2010-01-141-5/+6
|
* commandlist: aliases are now references rather than copieshut2010-01-131-2/+13
|
* commandlist: added alias(existing, *new)hut2010-01-131-0/+8
|
* commandlist: added clear()hut2010-01-131-0/+9
|
* fsobject.directory: removed __getitem__ (too ambiguous)hut2010-01-131-2/+0
|
* commandlist: improvements and test casehut2010-01-131-0/+54
|
* random cleanups and fixeshut2010-01-071-0/+1
|
* bookmarks: added testcase, documentation, settinghut2010-01-011-0/+73
|
* fixed tc_displayablehut2009-12-311-9/+11
|
* added documentation, clean uphut2009-12-312-7/+7
|
* removed test/stuff directoryhut2009-12-306-236/+0
| | | | It contained non-relevant scripts
* fixed a few things~hut2009-12-301-11/+0
|
* updated testhut2009-12-291-2/+2
|
* test case for keyapi.Wrapperhut2009-12-271-0/+24
|
* fixed colorschemes, added unittest for colorschemeshut2009-12-171-0/+31
|
* extended history by a couple of methodshut2009-12-171-7/+10
|
* fixed directory testhut2009-12-141-0/+3
|
* updated / added testshut2009-12-135-4/+213
|
* clean ups, commentshut2009-12-132-5/+8
|
* clean upshut2009-12-113-8/+5
|
* run all tests with a single executablehut2009-12-111-0/+5
|
* Reorganization of gui/widget hierarchy and directory structurehut2009-12-111-1/+1
|
* restructurationshut2009-12-111-2/+2
|
* moved/fixed testshut2009-12-117-1/+209
|
* fixed directory testhut2009-12-061-19/+0
|
* History Object + Test Casehut2009-12-051-0/+44
|
* random improvementshut2009-11-291-17/+18
|
* more VROOMhut2009-11-272-12/+22
|
* implemented more stuffhut2009-11-252-9/+10
|
* corrected test, added some stuffhut2009-11-242-5/+50
|
* stuffhut2009-11-241-1/+2
|
* better implementation of directories/fileshut2009-11-243-25/+54
|
* test cases for directory.pyhut2009-11-233-0/+68
ers is to reward curiosity. // Includes // End Includes // Types // End Types // Function prototypes are auto-generated in the 'build' script; define your // functions in any order. Just be sure to declare each function header all on // one line, ending with the '{'. Our auto-generation scripts are too minimal // and simple-minded to handle anything else. #include "function_list" // by convention, files ending with '_list' are auto-generated // Globals // // All statements in this section should always define a single variable on a // single line. The 'build' script will simple-mindedly auto-generate extern // declarations for them. Remember to define (not just declare) constants with // extern linkage in this section, since C++ global constants have internal // linkage by default. // // End Globals int main(int argc, char* argv[]) { atexit(reset); // we require a 32-bit little-endian system assert(sizeof(int) == 4); assert(sizeof(float) == 4); assert_little_endian(); // End One-time Setup // Commandline Parsing // End Commandline Parsing // End Main return 0; } // Unit Tests // End Unit Tests //: our first directive; insert the following headers at the start of the program :(before "End Includes") #include <assert.h> #include <stdlib.h> //: Without directives or with the :(code) directive, lines get added at the //: end. //: //: Regardless of where functions are defined, we can call them anywhere we //: like as long as we format the function header in a specific way: put it //: all on a single line without indent, end the line with ') {' and no //: trailing whitespace. As long as functions uniformly start this way, our //: 'build' script contains a little command to automatically generate //: declarations for them. :(code) void reset() { // End Reset } void assert_little_endian() { const int x = 1; const char* y = reinterpret_cast<const char*>(&x); if (*y != 1) { cerr << "SubX requires a little-endian processor. Do you have Intel (or AMD or Atom) inside?\n"; exit(1); } } :(before "End Includes") #include<iostream> using std::cerr;