about summary refs log tree commit diff stats
path: root/arc/charterm/info.rkt
blob: 64eeaefecd0fd0495d4e1267e0bc57291b84c4ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#lang setup/infotab

(define mcfly-planet       'neil/charterm:3:1)
(define name               "CharTerm")
(define mcfly-subtitle     "Character-cell Terminal Interface in Racket")
(define blurb              (list name ": Character-cell Terminal Interface"))
(define homepage           "http://www.neilvandyke.org/racket-charterm/")
(define mcfly-author       "Neil Van Dyke")
(define repositories       '("4.x"))
(define categories         '(misc))
(define can-be-loaded-with 'all)
(define scribblings        '(("doc.scrbl" () (library))))
(define primary-file       "main.rkt")
(define mcfly-start        "charterm.rkt")
(define mcfly-files        '(defaults
                              "charterm.rkt"
                              "demo.rkt"
                              "test-charterm.rkt"))
(define mcfly-license      "LGPLv3")

(define mcfly-legal
    "Copyright 2012 -- 2013 Neil Van Dyke.  This program is Free Software; you
can redistribute it and/or modify it under the terms of the GNU Lesser General
Public License as published by the Free Software Foundation; either version 3
of the License, or (at your option) any later version.  This program is
distributed in the hope that it will be useful, but without any warranty;
without even the implied warranty of merchantability or fitness for a
particular purpose.  See http://www.gnu.org/licenses/ for details.  For other
licenses and consulting, please contact the author.")
t">void cmd_pgp_start_shows_message_when_connection(jabber_conn_status_t conn_status) { gchar *args[] = { "start", NULL }; ProfWin window; window.type = WIN_CHAT; will_return(connection_get_status, conn_status); expect_cons_show("You must be connected to start PGP encrpytion."); gboolean result = cmd_pgp(&window, CMD_PGP, args); assert_true(result); } void cmd_pgp_start_shows_message_when_disconnected(void **state) { cmd_pgp_start_shows_message_when_connection(JABBER_DISCONNECTED); } void cmd_pgp_start_shows_message_when_disconnecting(void **state) { cmd_pgp_start_shows_message_when_connection(JABBER_DISCONNECTING); } void cmd_pgp_start_shows_message_when_connecting(void **state) { cmd_pgp_start_shows_message_when_connection(JABBER_CONNECTING); } void cmd_pgp_start_shows_message_when_no_arg_in_wintype(win_type_t wintype) { gchar *args[] = { "start", NULL }; ProfWin window; window.type = wintype; will_return(connection_get_status, JABBER_CONNECTED); expect_cons_show("You must be in a regular chat window to start PGP encrpytion."); gboolean result = cmd_pgp(&window, CMD_PGP, args); assert_true(result); } void cmd_pgp_start_shows_message_when_no_arg_in_console(void **state) { cmd_pgp_start_shows_message_when_no_arg_in_wintype(WIN_CONSOLE); } void cmd_pgp_start_shows_message_when_no_arg_in_muc(void **state) { cmd_pgp_start_shows_message_when_no_arg_in_wintype(WIN_MUC); } void cmd_pgp_start_shows_message_when_no_arg_in_mucconf(void **state) { cmd_pgp_start_shows_message_when_no_arg_in_wintype(WIN_MUC_CONFIG); } void cmd_pgp_start_shows_message_when_no_arg_in_private(void **state) { cmd_pgp_start_shows_message_when_no_arg_in_wintype(WIN_PRIVATE); } void cmd_pgp_start_shows_message_when_no_arg_in_xmlconsole(void **state) { cmd_pgp_start_shows_message_when_no_arg_in_wintype(WIN_XML); } #else void cmd_pgp_shows_message_when_pgp_unsupported(void **state) { gchar *args[] = { "gen", NULL }; expect_cons_show("This version of Profanity has not been built with PGP support enabled"); gboolean result = cmd_pgp(NULL, CMD_PGP, args); assert_true(result); } #endif