/[LeafOK_CVS]/lbbs/src/test_article_favor.c
ViewVC logotype

Diff of /lbbs/src/test_article_favor.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 by sysadm, Wed Oct 15 00:45:52 2025 UTC Revision 1.5 by sysadm, Tue Nov 11 00:28:05 2025 UTC
# Line 1  Line 1 
1  /***************************************************************************  /* SPDX-License-Identifier: GPL-3.0-or-later */
2                                    test_article_favor.c  -  description  /*
3                                                           -------------------   * test_article_favor
4          Copyright            : (C) 2004-2025 by Leaflet   *   - tester for data model and basic operations of user favorite articles
5          Email                : leaflet@leafok.com   *
6   ***************************************************************************/   * Copyright (C) 2004-2025  Leaflet <leaflet@leafok.com>
7     */
8  /***************************************************************************  
9   *                                                                         *  #ifdef HAVE_CONFIG_H
10   *   This program is free software; you can redistribute it and/or modify  *  #include "config.h"
11   *   it under the terms of the GNU General Public License as published by  *  #endif
  *   the Free Software Foundation; either version 3 of the License, or     *  
  *   (at your option) any later version.                                   *  
  *                                                                         *  
  ***************************************************************************/  
12    
13  #include "article_favor.h"  #include "article_favor.h"
14  #include <stdio.h>  #include <stdio.h>
# Line 114  int main(int argc, char *argv[]) Line 110  int main(int argc, char *argv[])
110                  }                  }
111    
112                  aid = i * 5 + 7;                  aid = i * 5 + 7;
113                    if (article_favor_check(aid, &favor) != 1)
114                    {
115                            printf("article_favor_check(%d) != 1\n", aid);
116                            break;
117                    }
118    
119                  if (article_favor_set(aid, &favor, 1) != 0)                  if (article_favor_set(aid, &favor, 1) != 0)
120                  {                  {
121                          printf("article_favor_set(%d, 1) != 0\n", aid);                          printf("article_favor_set(%d, 1) != 0\n", aid);


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1