Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (14 sloc) 0.509 kB
(ns robot-remote-server.util
(:require [clojure.string :as str]))
(defn handle-return-val
"Convert everything to RobotFramework-acceptable types. See implementations in other languages for examples"
[ret]
(cond
(string? ret) ret
(number? ret) ret
(map? ret) (into {}
(for [[k v] ret]
[(str k) (handle-return-val v)]))
(coll? ret) (map handle-return-val ret)
(nil? ret) ""
:else (str ret)))
Jump to Line
Something went wrong with that request. Please try again.