Skip to content

Instantly share code, notes, and snippets.

@ebellani
Created February 3, 2016 21:42
Show Gist options
  • Save ebellani/7c70d16f06076e4fc375 to your computer and use it in GitHub Desktop.
Save ebellani/7c70d16f06076e4fc375 to your computer and use it in GitHub Desktop.
#+attr_latex: :align |l|l|l|l|l|
| el | list of elements | expected | python | js |
|----+--------------------------------------------------+----------+--------+------------|
| 5 | '(5 5 1 7 2 3 5) | 4 | pass | pass |
| 1 | '() | -1 | pass | pass |
| 1 | (make-list 20 0) | -1 | pass | pass |
| 1 | '(1 1 1 1 1 1 1 1 1 2) | 1 | pass | it was "2" |
| 1 | (append (make-list 50 1) (make-list 50 0)) | 50 | pass | it was "2" |
| 1 | (append (make-list 50000 1) (make-list 50000 0)) | 50000 | pass | it was "2" |
#+TBLFM: $4='(let ((rslt (org-sbe "asymmetry-solution-python" (element $1) (elist $2)))) (if (string= $3 rslt) "pass" (format "it was %S" rslt))) :: $5='(let ((rslt (org-sbe "asymmetry-solution-js" (element $1) (elist $2)))) (if (string= $3 rslt) "pass" (format "it was %S" rslt)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment