Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lua-nucleo/test/cases/0330-tpretty: fix compatibility with LuaJIT 2 #15

Open
rafis opened this issue Jun 30, 2013 · 0 comments
Open

lua-nucleo/test/cases/0330-tpretty: fix compatibility with LuaJIT 2 #15

rafis opened this issue Jun 30, 2013 · 0 comments

Comments

@rafis
Copy link
Member

rafis commented Jun 30, 2013

The test 0330-tpretty seems oriented for Lua 5.1 only and has incompabilities with LuaJIT 2. This is due to differences in table traversal order in these interpreters.

[run]   test/cases/0330-tpretty.lua Suite `tpretty' failed:
 * Test `tpretty_ex-bug-concat-nil-full': lua-nucleo/ensure.lua:216: ensure_strequals: first result matches expected:
different at byte 114 (line 9, offset 1):

  expected   |ue_visits_total = "IN|
vs. actual   |ue_visits_yesterday =|


actual:
{
  result =
  {
    stats =
    {
      garden =
      {
        views_total = "INTEGER";
        unique_visits_yesterday = "INTEGER";
        id = "GARDEN_ID";
        views_yesterday = "INTEGER";
        unique_visits_total = "INTEGER";
      };
    };
  };
  events = { };
}
expected:
{
  result =
  {
    stats =
    {
      garden =
      {
        views_total = "INTEGER";
        unique_visits_total = "INTEGER";
        id = "GARDEN_ID";
        views_yesterday = "INTEGER";
        unique_visits_yesterday = "INTEGER";
      };
    };
  };
  events = { };
}

#2375

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant