test_tb_value.cpp 777 B

1234567891011121314151617181920212223242526
  1. // ================================================================================
  2. // == This file is a part of Turbo Badger. (C) 2011-2014, Emil Segerås ==
  3. // == See tb_core.h for more information. ==
  4. // ================================================================================
  5. #include "tb_test.h"
  6. #include "tb_node_tree.h"
  7. #ifdef TB_UNIT_TESTING
  8. using namespace tb;
  9. TB_TEST_GROUP(tb_value)
  10. {
  11. TB_TEST(node_create_on_get)
  12. {
  13. TBNode node;
  14. TB_VERIFY(node.GetNode("foo>bar>funky") == nullptr);
  15. TB_VERIFY(node.GetNode("foo>bar>funky", TBNode::GET_MISS_POLICY_CREATE) != nullptr);
  16. TB_VERIFY(node.GetNode("foo>bar>funky") != nullptr);
  17. }
  18. // More coverage in test_tb_parser.cpp...
  19. }
  20. #endif // TB_UNIT_TESTING