unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 59a0cb8390966c8da7bb1285546e5a619b57eebe 629 bytes (raw)
name: test/src/igc-tests.el 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
 
;;; igc-tests.el --- tests for src/igc.c -*- lexical-binding: t -*-

(require 'ert)

(ert-deftest set-commit-limit-test ()
  (should (equal (igc--set-commit-limit (ash 1 30)) nil))
  (should (equal (assoc-string "commit-limit" (igc-info))
                 '("commit-limit" 1 1073741824 0)))
  (should-error (igc--set-commit-limit -1)
                :type 'args-out-of-range)
  (should-error (igc--set-commit-limit (- (ash 1 64) 1))
                :type 'args-out-of-range)
  (should (equal (igc--set-commit-limit nil) nil))
  (should (equal (assoc-string "commit-limit" (igc-info))
                 '("commit-limit" 1 -1 0))))

debug log:

solving 59a0cb83909 ...
found 59a0cb83909 in https://git.savannah.gnu.org/cgit/emacs.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).