#include <iostream>

using namespace std;

class LList{

    struct Node{
	int data;
	Node * next;
    };

    Node * head;

public:

    void test();

void error(){
    cout << "FAILED TEST!!!!\n";
    exit(-1);
}
    
    void insertInOrder(int value);
};//end of class LList


void LList::test(){
    head = NULL;
    insertInOrder(7);
    if (head->data != 7)
	error();
    if (head->next != NULL)
	error();
}


void LList::insertInOrder(int value){
    if (head == NULL){
	head = new Node;
	head->data = value;
	head->next = NULL;
    }
}

int main(){
	
    LList list;
    list.test();

    return 0;
}

