File: test.ml

package info (click to toggle)
ocaml-swhid-core 0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 212 kB
  • sloc: ml: 570; makefile: 3
file content (10 lines) | stat: -rw-r--r-- 271 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
open Swhid_core

let () =
  match
    Object.of_string "swh:1:cnt:bac494ecb6840e6b66f21aae7feb847b23f0745a"
  with
  | Ok v ->
    let s = Object.to_string v in
    assert (String.equal "swh:1:cnt:bac494ecb6840e6b66f21aae7feb847b23f0745a" s)
  | Error _e -> assert false