-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #355 from hkchekc/df_compat
Dataframe compatibility test
- Loading branch information
Showing
7 changed files
with
177 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include "testutil.hpp" | ||
#include <nix.hpp> | ||
|
||
int main(int argc, char* argv[]) { | ||
if (argc != 2) { | ||
std::cerr << "Please specify a nix file (and nothing else)" << std::endl; | ||
return 1; | ||
} | ||
std::string fname = argv[1]; | ||
nix::File nf = nix::File::open(fname, nix::FileMode::ReadOnly); | ||
|
||
int idx = 0, errcount = 0; | ||
std::string expname, expdef; | ||
for (const auto &block : nf.blocks()) { | ||
expname = "test_block" + nix::util::numToStr(idx); | ||
expdef = "definition data_frame " + nix::util::numToStr(idx++); | ||
errcount += compare(expname, block.name()); | ||
errcount += compare("blocktype", block.type()); | ||
errcount += compare(expdef, block.definition()); | ||
} | ||
return errcount; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters