loghash-spec
                                
                                
                                
                                    loghash-spec copied to clipboard
                            
                            
                            
                        Change unit tests formats
Use a YAML file that, then generate JSON file. Sample:
- input: Hello #world
- output:
  - items:
    - hashtags:
      - world
    - identifiers
  - tokens:
      - type: string
        content: Hello
      - type: hashtag
        content: world
output:
{
    "input": "Hello"
  }, 
  {
    "output": [
      {
        "items": [
          {
            "hashtags": [
              "world"
            ]
          }, 
          "identifiers"
        ]
      }, 
      {
        "tokens": [
          {
            "content": "Hello", 
            "type": "string"
          }, 
          {
            "content": "world", 
            "type": "hashtag"
          }
        ]
      }
    ]
  }