<commit_before>
//
// specifying instructions
//
// Wed Feb 11 05:53:44 JST 2015
//

#include "fl_ids.h"
#include "fl_tools.h"
#include "feu_helpers.h"


context "instruction:"
{
  before all
  {
    hlp_dispatcher_start();
  }

  before each
  {
    char *exid = NULL;
    char *fep = NULL;
    char *s = NULL;
    fdja_value *result = NULL;
  }
  after each
  {
    free(exid);
    free(fep);
    free(s);
    fdja_free(result);
  }

  describe "log"
  {
    it "logs its attributes"
    {
      exid = flon_generate_exid("n.log");
      fep = flon_exid_path(exid);

      hlp_launch(
        exid,
        "sequence\n"
        "  log i 'something went wrong'\n"
        "  log w 'something went wrong' $(x) $(y)\n"
        "",
        "{ x: 123, y: [ 4, 5, 6 ] }");

      result = hlp_wait(exid, "terminated", NULL, 5);<commit_msg>wait a bit longer in spec<commit_after>
//
// specifying instructions
//
// Wed Feb 11 05:53:44 JST 2015
//

#include "fl_ids.h"
#include "fl_tools.h"
#include "feu_helpers.h"


context "instruction:"
{
  before all
  {
    hlp_dispatcher_start();
  }

  before each
  {
    char *exid = NULL;
    char *fep = NULL;
    char *s = NULL;
    fdja_value *result = NULL;
  }
  after each
  {
    free(exid);
    free(fep);
    free(s);
    fdja_free(result);
  }

  describe "log"
  {
    it "logs its attributes"
    {
      exid = flon_generate_exid("n.log");
      fep = flon_exid_path(exid);

      hlp_launch(
        exid,
        "sequence\n"
        "  log i 'something went wrong'\n"
        "  log w 'something went wrong' $(x) $(y)\n"
        "",
        "{ x: 123, y: [ 4, 5, 6 ] }");

      result = hlp_wait(exid, "terminated", NULL, 7);
{'fraction_non_alphanumeric': 0.15101070154577884, 'fraction_numerical': 0.022592152199762187, 'mean_word_length': 2.1166666666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2177743', 'n_tokens_mistral': 700, 'n_tokens_neox': 655, 'n_words': 156}