A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ascii-test.h File Reference
#include "ascii-file.h"
#include "ns3/test.h"
#include <stdint.h>
+ Include dependency graph for ascii-test.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NS_ASCII_TEST_EXPECT_EQ(gotFilename, expectedFilename)
 Test that a pair of new/reference ascii files are equal.
 

Macro Definition Documentation

◆ NS_ASCII_TEST_EXPECT_EQ

#define NS_ASCII_TEST_EXPECT_EQ (   gotFilename,
  expectedFilename 
)
Value:
do \
{ \
uint64_t line(0); \
bool diff = AsciiFile::Diff(gotFilename, expectedFilename, line); \
NS_TEST_EXPECT_MSG_EQ(diff, \
false, \
"ASCII traces " << gotFilename << " and " << expectedFilename \
<< " differ starting from line " << line); \
} while (false)

Test that a pair of new/reference ascii files are equal.

Parameters
gotFilenameThe name of the new file to read in including its path
expectedFilenameThe name of the reference file to read in including its path

Definition at line 39 of file ascii-test.h.