{"action":"closed","issue":{"url":"https://api.github.com/repos/gquintard/h2vtcspec/issues/1","repository_url":"https://api.github.com/repos/gquintard/h2vtcspec","labels_url":"https://api.github.com/repos/gquintard/h2vtcspec/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/gquintard/h2vtcspec/issues/1/comments","events_url":"https://api.github.com/repos/gquintard/h2vtcspec/issues/1/events","html_url":"https://github.com/gquintard/h2vtcspec/issues/1","id":127676165,"number":1,"title":"Expect on HPACK tables","user":{"login":"Dridi","id":891744,"avatar_url":"https://avatars.githubusercontent.com/u/891744?v=3","gravatar_id":"","url":"https://api.github.com/users/Dridi","html_url":"https://github.com/Dridi","followers_url":"https://api.github.com/users/Dridi/followers","following_url":"https://api.github.com/users/Dridi/following{/other_user}","gists_url":"https://api.github.com/users/Dridi/gists{/gist_id}","starred_url":"https://api.github.com/users/Dridi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dridi/subscriptions","organizations_url":"https://api.github.com/users/Dridi/orgs","repos_url":"https://api.github.com/users/Dridi/repos","events_url":"https://api.github.com/users/Dridi/events{/privacy}","received_events_url":"https://api.github.com/users/Dridi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-20T12:53:44Z","updated_at":"2016-03-24T13:54:52Z","closed_at":"2016-03-24T13:54:52Z","body":"From the current syntax:\r\n\r\n```\r\nexpect outtable[4].key == \"x-cache\"\r\nexpect intable[1].value == \"307\"\r\n```\r\n\r\nFirst suggestion is to name the tables `tbl.enc`(encoding table) and `tbl.dec` (decoding table). The second suggestion is to treat the table as a multi-line string for comparison, comparing only non-blank lines, with a way to ignore entries for instance:\r\n\r\n```\r\n# a star means that we ignore a key or value, inspired by logexpect\r\nexpect tbl.dec ~ {\r\n    * *\r\n    * *\r\n    * *\r\n    x-cache *\r\n}\r\n\r\nexpect tbl.enc ~ {\r\n    * 307 \r\n}\r\n```"}}