Skip to content

Commit

Permalink
updated unit tests and regeneration
Browse files Browse the repository at this point in the history
  • Loading branch information
stepan-mitkin committed Apr 18, 2014
1 parent 1a803fb commit 2473aff
Show file tree
Hide file tree
Showing 37 changed files with 5,519 additions and 5,461 deletions.
15 changes: 15 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
How to work on DRAKON Editor source code.

1. Add unit tests. See unittest/unittest.tcl.
2. Run unit tests.
cd unittest
tclsh unittest.tcl

There will be error messages and stack traces. It's okay.
The bottom line must be "success".
3. Add newly added .drn source files to unittest/regenerate.sh


3. If you change the code generator.
- Update unittest/regenerate_examples.sh
- Run unittest/regenerate_examples.sh
4 changes: 2 additions & 2 deletions examples/C++/StringList.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Autogenerated with DRAKON Editor 1.23 */
#ifndef STRINGLIST_H21741
#define STRINGLIST_H21741
#ifndef STRINGLIST_H27590
#define STRINGLIST_H27590

// This is the header of the H-file.
// Your code goes here. For example:
Expand Down
4 changes: 2 additions & 2 deletions examples/C++/cpp_demo.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Autogenerated with DRAKON Editor 1.23 */
#ifndef CPP_DEMO_H67494
#define CPP_DEMO_H67494
#ifndef CPP_DEMO_H26590
#define CPP_DEMO_H26590

#include "StringList.h"

Expand Down
4 changes: 2 additions & 2 deletions examples/C/c_demo.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Autogenerated with DRAKON Editor 1.23 */
#ifndef C_DEMO_H23843
#define C_DEMO_H23843
#ifndef C_DEMO_H51298
#define C_DEMO_H51298

/* Since C does not come with a decent standard library,
we must provide our own primitives.
Expand Down
4 changes: 2 additions & 2 deletions examples/QtC++/qt_cpp.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Autogenerated with DRAKON Editor 1.23 */
#ifndef QT_CPP_H58950
#define QT_CPP_H58950
#ifndef QT_CPP_H60341
#define QT_CPP_H60341

#include <QtCore/QObject>

Expand Down
Binary file modified examples/automaton/C#/automaton-cs.exe
Binary file not shown.
4 changes: 2 additions & 2 deletions examples/automaton/C/automaton-c.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Autogenerated with DRAKON Editor 1.23 */
#ifndef AUTOMATON_C_H98303
#define AUTOMATON_C_H98303
#ifndef AUTOMATON_C_H34031
#define AUTOMATON_C_H34031

#include <stdlib.h>
#include "lib.h"
Expand Down
2 changes: 1 addition & 1 deletion examples/automaton/Erlang/code_door.erl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
% Autogenerated with DRAKON Editor 1.22
% Autogenerated with DRAKON Editor 1.23

-module(code_door).
-behaviour(gen_fsm).
Expand Down
2 changes: 1 addition & 1 deletion examples/automaton/Erlang/lexer.erl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
% Autogenerated with DRAKON Editor 1.22
% Autogenerated with DRAKON Editor 1.23

-module(lexer).
-export([create/1]).
Expand Down
Binary file modified examples/structure/C#/01-simple-cs.exe
Binary file not shown.
Binary file modified examples/structure/C#/02-index-cs.exe
Binary file not shown.
Binary file modified examples/structure/C#/03-index2-cs.exe
Binary file not shown.
Binary file modified examples/structure/C#/04-peer-arrow-cs.exe
Binary file not shown.
Binary file modified examples/structure/C#/05-own-arrow-cs.exe
Binary file not shown.
Binary file modified examples/structure/C#/06-peer-paw-cs.exe
Binary file not shown.
Binary file modified examples/structure/C#/07-own-paw-cs.exe
Binary file not shown.
Binary file modified examples/structure/C#/08-m2m-cs.exe
Binary file not shown.
Binary file modified examples/structure/C#/09-inherit-cs.exe
Binary file not shown.
Binary file modified examples/structure/C#/10-inherit2-cs.exe
Binary file not shown.
Binary file modified examples/structure/C#/11-oop-cs.exe
Binary file not shown.
4 changes: 2 additions & 2 deletions examples/structure/C/globals.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Autogenerated with DRAKON Editor 1.23 */
#ifndef GLOBALS_H1854
#define GLOBALS_H1854
#ifndef GLOBALS_H14553
#define GLOBALS_H14553

#include "lib.h"

Expand Down
4 changes: 2 additions & 2 deletions examples/structure/C/indexed.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Autogenerated with DRAKON Editor 1.23 */
#ifndef INDEXED_H51677
#define INDEXED_H51677
#ifndef INDEXED_H72543
#define INDEXED_H72543

#include "lib.h"

Expand Down
4 changes: 2 additions & 2 deletions examples/structure/C/indexed2.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Autogenerated with DRAKON Editor 1.23 */
#ifndef INDEXED2_H58189
#define INDEXED2_H58189
#ifndef INDEXED2_H67750
#define INDEXED2_H67750

#include "lib.h"

Expand Down
4 changes: 2 additions & 2 deletions examples/structure/C/m2m.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Autogenerated with DRAKON Editor 1.23 */
#ifndef M2M_H96466
#define M2M_H96466
#ifndef M2M_H80581
#define M2M_H80581

#include "lib.h"

Expand Down
4 changes: 2 additions & 2 deletions examples/structure/C/ownarrow.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Autogenerated with DRAKON Editor 1.23 */
#ifndef OWNARROW_H930
#define OWNARROW_H930
#ifndef OWNARROW_H59305
#define OWNARROW_H59305

#include "lib.h"

Expand Down
4 changes: 2 additions & 2 deletions examples/structure/C/ownpaw.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Autogenerated with DRAKON Editor 1.23 */
#ifndef OWNPAW_H45028
#define OWNPAW_H45028
#ifndef OWNPAW_H41161
#define OWNPAW_H41161

#include "lib.h"

Expand Down
4 changes: 2 additions & 2 deletions examples/structure/C/peerarrow.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Autogenerated with DRAKON Editor 1.23 */
#ifndef PEERARROW_H72660
#define PEERARROW_H72660
#ifndef PEERARROW_H55691
#define PEERARROW_H55691

#include "lib.h"

Expand Down
4 changes: 2 additions & 2 deletions examples/structure/C/peerpaw.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Autogenerated with DRAKON Editor 1.23 */
#ifndef PEERPAW_H31148
#define PEERPAW_H31148
#ifndef PEERPAW_H50847
#define PEERPAW_H50847

#include "lib.h"

Expand Down
4 changes: 2 additions & 2 deletions examples/structure/C/simple.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Autogenerated with DRAKON Editor 1.23 */
#ifndef SIMPLE_H39763
#define SIMPLE_H39763
#ifndef SIMPLE_H84728
#define SIMPLE_H84728

#include "lib.h"

Expand Down
Loading

0 comments on commit 2473aff

Please sign in to comment.